package com.dkm.biz.gl.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.gl.domain.EavEntityRel;
import com.dkm.biz.gl.persistence.dao.EavEntityRelQueryDao;
import com.dkm.biz.gl.persistence.entity.EavEntityRelPo;
import com.dkm.biz.gl.repository.EavEntityRelRepository;
import com.dkm.biz.repository.AbstractRepository;

/**
 * 对象功能:c6_eav_entity_rel Repository接口的实现类
 * 开发公司:唯心六艺软件 - Craft6.cn
 * 开发人员:winston
 * 创建时间:2014-07-30 15:42:22
 */
@Repository
public class EavEntityRelRepositoryImpl extends AbstractRepository<String, EavEntityRelPo,EavEntityRel> implements EavEntityRelRepository{
	  
	@Resource
	private  EavEntityRelQueryDao eavEntityRelQueryDao;

	public EavEntityRel newInstance() {
		EavEntityRelPo po = new EavEntityRelPo();
		EavEntityRel eavEntityRel = SpringHelper.getBean(EavEntityRel.class);
		eavEntityRel.setData(po);
		return eavEntityRel;
	}

	public EavEntityRel newInstance(EavEntityRelPo po) {
		EavEntityRel eavEntityRel = SpringHelper.getBean(EavEntityRel.class);
		eavEntityRel.setData(po);
		return eavEntityRel;
	} 
	
	@Override
	protected IQueryDao<String, EavEntityRelPo> getQueryDao() {
		return eavEntityRelQueryDao;
	}
	
}
